//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_isBinocular.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);

private["_item","_config","_simulation"];
_item = _this select 0;
if (isClass(configFile >> "CfgWeapons" >> _item)) then {
	_config = configFile >> "CfgWeapons" >> _item;
	_simulation = toUpper(getText(_config >> "simulation"));
	TRACE_1("",_simulation);
	if(_simulation == "BINOCULAR" || {_simulation == "WEAPON"} || {_item == "LASERDESIGNATOR"}) then
	{
		true;
	}
	else
	{
		false;
	};
} else {
	false;
}; 